package com.cosmoplat.xikai.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cosmoplat.xikai.business.domain.DeviceProductLog;
import com.cosmoplat.xikai.business.service.DeviceProductLogService;
import com.cosmoplat.xikai.business.mapper.DeviceProductLogMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 22047582
 * @description 针对表【device_product_log】的数据库操作Service实现
 * @createDate 2025-01-07 13:51:30
 */
@Service
public class DeviceProductLogServiceImpl extends ServiceImpl<DeviceProductLogMapper, DeviceProductLog> implements DeviceProductLogService {

    @Override
    public List<DeviceProductLog> getListByProductIdsForProcessing(List<Long> productIds) {
        return this.baseMapper.getMaxMeasurTorqueListByProductIds(productIds);
    }

    @Override
    public DeviceProductLog getLastConsumption(String productId) {
        return this.baseMapper.getLastConsumption(productId);
    }
}




